avoid redundant rpath entries on multiarch systems
authorDebian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Fri, 17 Oct 2025 14:12:47 +0000 (10:12 -0400)
committerAaron M. Ucko <ucko@debian.org>
Fri, 17 Oct 2025 14:12:47 +0000 (10:12 -0400)
 * src/build-system/configure(.ac): when ensuring that executables
   will be able to find libstdc++, don't add rpath entries that files
   under /etc/ld.so.conf.d already specify, even if they don't resemble
   traditional single-architecture or biarch locations.

Debian-Bug: 633567.
Author: Aaron M. Ucko <ucko@debian.org>
Last-Update: 2011-08-28

Gbp-Pq: Name no_multiarch_rpath

c++/src/build-system/configure
c++/src/build-system/configure.ac

index 4a45de55295f28e77b30fbba588a0a28a11a13a0..492675b4221ffca6e0925b462bd5f05ddc0255fa 100755 (executable)
@@ -11052,7 +11052,7 @@ case "$compiler:$compiler_version:$with_bin_release:$ncbi_cv_prog_cxx_stdlib_lib
                break
                ;;
             /* )
-               found=true
+               fgrep -qsx $abs_dir /etc/ld.so.conf.d/*  ||  found=true
                break
                ;;
         esac
index 0e5fcd08118067dfac696714abfb1ec9d4917717..644498624f5a3f1a132deec2cb8efe99ad90af20 100644 (file)
@@ -2537,7 +2537,7 @@ case "$compiler:$compiler_version:$with_bin_release:$ncbi_cv_prog_cxx_stdlib_lib
                break
                ;;
             /* )
-               found=true
+               fgrep -qsx $abs_dir /etc/ld.so.conf.d/*  ||  found=true
                break
                ;;
         esac